package com.cloud.school.app;

import com.cloud.school.app.config.security.ValidateCode;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;
import tk.mybatis.spring.annotation.MapperScan;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @ClassName CloudSchoolApp
 * @Description 云校主程序
 * @Author 36297
 * @Date 2018/11/24 0:05
 * @Version 1.0
 */
@SpringBootApplication
@MapperScan("com.cloud.school.app.repository")
public class CloudSchoolApplication {
    public static void main(String[] args) {
        Environment env = SpringApplication.run(CloudSchoolApplication.class, args).getEnvironment();
        ValidateCode.setEnv(env);
        System.out.println(new SimpleDateFormat("[yyyy-MM-dd HH:mm:ss]").format(new Date()) + " server started!");
    }
}